<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>

<style>
    a{
        color: #ffffff;
    }
    h2{
        /*文字对齐*/
        text-align: center;
    }
</style>

<body>
<h2>17期springboot案例-登录</h2>

<div style="width:300px;height:100%;margin:0px auto;">
    <form th:action="@{/login}" method="post">
        <!--        form-control给input添加这个class后就会使用bootstrap自带的input框-->
        用户名：<input class="form-control" type="text" th:value="${username}" name="username"><br>
        <!--注意参数的拼接-->
        密 码：<input class="form-control" type="password" th:value="${password}" name="password"><br>
        <button class="btn btn-primary btn-lg btn-block">登录</button>
    </form>
</div>

</body>

</html>